package com.jianguo.system.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jianguo.common.core.domain.BaseEntity;
import com.jianguo.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 省市区字典对象 pz_dict_district
 *
 * @author xjj
 * @date 2024-03-22
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PzDictDistrict extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /** 父级单位ID */
    @Excel(name = "父级单位ID")
    private String parentId;
    /** 行政代码 */
    @Excel(name = "行政代码")
    private String code;
    /** 名称 */
    @Excel(name = "名称")
    private String name;
    /** 名称后缀 */
    @Excel(name = "名称后缀")
    private String suffix;
    /** 名称拼音 */
    @Excel(name = "名称拼音")
    private String pinyin;
    /** 排序序号 */
    @Excel(name = "排序序号")
    private Long sort;
    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long status;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("code", getCode())
            .append("name", getName())
            .append("suffix", getSuffix())
            .append("pinyin", getPinyin())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleted", getDeleted())
            .append("remark", getRemark())
        .toString();
    }
}
